Visual Basic (Declaration) | |
---|---|
Public Function CountInCache( _ Optional ByVal predicate As Expression(Of Func(Of T,Boolean)) _ ) As Integer |
Visual Basic (Usage) | ![]() |
---|---|
Dim instance As Repository(Of T) Dim predicate As Expression(Of Func(Of T,Boolean)) Dim value As Integer value = instance.CountInCache(predicate) |
C# | |
---|---|
public int CountInCache( Expression<Func<T,bool>> predicate ) |
C++/CLI | |
---|---|
public: int CountInCache( Expression<Func<T^,bool>^>^ predicate ) |
Parameters
- predicate
- Optional predicate to filter the entities
Return Value
The number of entities matching the optional expression.Target Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family